﻿<%@ Page Title="" Language="C#" MasterPageFile="../Share/Default.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="User_Default" %>

<%@ Register src="../Control/UserMenu.ascx" tagname="UserMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">

    <uc1:UserMenu ID="UserMenu1" runat="server" />
    <asp:GridView ID="list" runat="server" AutoGenerateColumns="false" SkinID="gvList">
    <Columns>
        <asp:TemplateField>
            <HeaderTemplate>
                用户id
            </HeaderTemplate>
            <ItemTemplate>
                <%#UserPower.HaveField((int)FreeHouse.Power.Fields.TUser.UserId)?Eval("UserId"):"*" %>
            </ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField>
            <HeaderTemplate>
                账户
            </HeaderTemplate>
            <ItemTemplate>
                <%#UserPower.HaveField((int)FreeHouse.Power.Fields.TUser.UserName)?Eval("UserName"):"**" %>
            </ItemTemplate>
        </asp:TemplateField> 
        
        <asp:TemplateField>
            <HeaderTemplate>
                编辑权限
            </HeaderTemplate>
            <ItemTemplate>
                <a href="power.aspx?userid=<%#Eval("userid") %>">编辑权限</a>
            </ItemTemplate>
        </asp:TemplateField>  
        
         <asp:TemplateField>
            <HeaderTemplate>
                编辑权限
            </HeaderTemplate>
            <ItemTemplate>
                <a onclick="return confirm('确定删除用户:<%#Eval("username").ToString().Trim() %>?')"  href="delete.aspx?userid=<%#Eval("userid") %>">删除用户</a>
            </ItemTemplate>
        </asp:TemplateField>                 
    </Columns>
    </asp:GridView>
</asp:Content>

